package com.ruicar.afs.cloud.afscase.risk.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumDeserializer;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumSerializer;
import com.ruicar.afs.cloud.risk.api.enums.tortoise.GwtTortoiseFlowType;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description
 * @Author Peng Jinbo
 * @Date 2020/08/05 20:54
 */
@Data
@TableName("case_tortoise_prev")
public class CaseTortoisePrev extends BaseEntity {
    /**
     * Apply no
     * 预审没有申请编号....
     */
    private String applyNo;

    /**
     * Operate date
     */
    private Date operateDate;

    /**
     * Notice date
     */
    private Date noticeDate;

    /**
     * 标识
     * 1：二手车预审
     * 2：多品预审（新车）
     */
    @JSONField(serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GwtTortoiseFlowType type;

    /**
     * 预审批id
     */
    private String prevId;

    /**
     * Result
     */
    private String result;

    /**
     * Price limit
     */
    private BigDecimal priceLimit;

    /**
     * Reject reason
     */
    private String rejectReason;

    /**
     * Approve date
     */
    private Date approveDate;

}
